<!DOCTYPE html>
<html>
<head>
  
    <link rel="stylesheet" type="text/css" href="__ADMIN__/Css/bootstrap.min.css" />
     <link rel="stylesheet" type="text/css" href="__ADMIN__/Css/ui.css" />
      <link rel="stylesheet" type="text/css" href="__ADMIN__/Css/Admin-default.css" />
        <js href="/Public/Plugins/jquery/jquery-2.1.1.min.js" />
       <js href="/Public/Plugins/jquery/jquery-ui.js" />
   <js href="/Public/Plugins/bootstrap/bootstrap-datepicker.js" />
        <js href="/Public/Plugins/bootstrap/bootstrap.js" />
        <js href="/Public/Plugins/bootstrap/bootstrap-select.js" />
        <js href="/Public/Plugins/ui-frame/plugins.js" />
        <js href="/Public/Plugins/ui-frame/actions.js" />
    <js href="/Public/Plugins/dropzone/dropzone.js" />
        <js href="/Public/Plugins/knob/knob.js" />
</head>
<body>
<div class="page-content-wrap" style="height: 670px;">
                    <div class="row">
                        <div class="col-md-12">
                            <div class="panel panel-default">
                                <div class="panel-body">
<form action="{:U('coupon/couponaddbycontext', array('id'=>$id))}" enctype="multipart/form-data" method="post" class="form-horizontal">
    <input type="hidden" name="id" value="{$info.id}">
    <div class="form-group">
        <label class="col-md-3 col-xs-12 control-label"></label>
        <div class="col-md-6 col-xs-12">
            <h2>增加优惠券</h2>
        </div>
    </div>

   

    <div class="form-group">
        <label class="col-md-3 col-xs-12 control-label">优惠码</label>
        <div class="col-md-6 col-xs-12">                                            
            <input name="name" type="text" class="form-control" value="{$info.value}" />
        </div>
    </div>
     <div class="form-group">
        <label class="col-md-3 col-xs-12 control-label">描述</label>
        <div class="col-md-6 col-xs-12">                                            
            <input name="context" type="text" class="form-control" value="{$info.context}" />
        </div>
    </div>
   <div class="form-group">                                        
        <label class="col-md-3 col-xs-12 control-label">开始日期</label>
        <div class="col-md-6 col-xs-12">
            <div class="input-group">
                <input name="btime" type="text" class="form-control datepicker" value="{$info.btime|date=('Y-m-d'),###}" />
                <span class="input-group-addon"><span class="fa fa-calendar"></span></span>
            </div>
        </div>
    </div>
    <div class="form-group">                                        
        <label class="col-md-3 col-xs-12 control-label">过期日期</label>
        <div class="col-md-6 col-xs-12">
            <div class="input-group">
                <input name="etime" type="text" class="form-control datepicker" value="{$info.etime|date=('Y-m-d'),###}" />
                <span class="input-group-addon"><span class="fa fa-calendar"></span></span>
            </div>
        </div>
    </div>
     <div class="form-group">
        <label class="col-md-3 col-xs-12 control-label">是否使用</label>
        <div class="col-md-6 col-xs-12">                                            
              <select name="isused">
              <option style="width:200px" value="0" <eq name="info.isused" value="0">selected="selected"</eq>>未使用</option>
   			<option style="width:200px" value="1" <eq name="info.isused" value="1">selected="selected"</eq>>已使用</option>
  					 
   				
  </select>
        </div>
    </div>
  

    <div>
        <div class="col-md-3 col-xs-12"></div>
        <div class="col-md-6 col-xs-12">
            <present name="errorNote">
                <div class="alert alert-danger" role="alert">
                    <button type="button" class="close" data-dismiss="alert"><span aria-hidden="true">&times;</span><span class="sr-only">Close</span></button>
                    <strong>{$errorNote}</strong>
                </div>                        
            </present>
            <div class="form-group">
                <div class="col-md-6"><input type="reset" class="btn btn-block btn-default" value=" 清 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 空 " /></div>
                <div class="col-md-6"><button class="btn btn-block btn-info pull-right"> 提 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 交 </button></div>
            </div>
        </div>
    </div>

</form>
</div>
</div>
</div>
</div>
</div>
</body>
</html>